package com.ruoyi.sms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 指令列表对象 t_cmd
 * 
 * @author wukong
 * @date 2021-03-30
 */
public class Cmd extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 渠道 */
    @Excel(name = "渠道")
    private Long channelId;

    /** 业务 */
    @Excel(name = "业务")
    private Long serviceTypeId;

    /** 指令 */
    @Excel(name = "指令")
    private String cmd;

    /** 端口 */
    @Excel(name = "端口")
    private String port;

    /** 价格 */
    @Excel(name = "价格")
    private Double price;

    /** 扣量比例 */
    @Excel(name = "扣量比例")
    private Long deduct;

    /** 计费数 */
    @Excel(name = "计费数")
    private Long billingCount;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 优先级 */
    @Excel(name = "优先级")
    private Long weight;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setChannelId(Long channelId) 
    {
        this.channelId = channelId;
    }

    public Long getChannelId() 
    {
        return channelId;
    }
    public void setServiceTypeId(Long serviceTypeId) 
    {
        this.serviceTypeId = serviceTypeId;
    }

    public Long getServiceTypeId() 
    {
        return serviceTypeId;
    }
    public void setCmd(String cmd) 
    {
        this.cmd = cmd;
    }

    public String getCmd() 
    {
        return cmd;
    }
    public void setPort(String port) 
    {
        this.port = port;
    }

    public String getPort() 
    {
        return port;
    }
    public void setPrice(Double price)
    {
        this.price = price;
    }

    public Double getPrice()
    {
        return price;
    }
    public void setDeduct(Long deduct) 
    {
        this.deduct = deduct;
    }

    public Long getDeduct() 
    {
        return deduct;
    }
    public void setBillingCount(Long billingCount) 
    {
        this.billingCount = billingCount;
    }

    public Long getBillingCount() 
    {
        return billingCount;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setWeight(Long weight) 
    {
        this.weight = weight;
    }

    public Long getWeight() 
    {
        return weight;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("channelId", getChannelId())
            .append("serviceTypeId", getServiceTypeId())
            .append("cmd", getCmd())
            .append("port", getPort())
            .append("price", getPrice())
            .append("deduct", getDeduct())
            .append("billingCount", getBillingCount())
            .append("status", getStatus())
            .append("weight", getWeight())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
